﻿using System;
using System.Diagnostics;

namespace RaytracerLib.Script
{
    [AttributeUsage(AttributeTargets.Field, AllowMultiple = false)]
    public sealed class ScriptParamAttribute : Attribute
    {
        public string Name { get; private set; }

        public ScriptParamAttribute()
        {
        }

        public ScriptParamAttribute(string a_name)
        {
            Debug.Assert(a_name == a_name.Trim());
            Debug.Assert(a_name.Length > 0);

            Name = a_name;
        }
    }
}